
# import os
# import sys
# import django
import base
from web import models

# base_dir = os.path.dirname(os.path.dirname(__file__))
# sys.path.append(base_dir)
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "s28.settings")
# django.setup()

def run():
    exists = models.PricePolicy.objects.filter(category=1, title="个人免费版").exists()
    if not exists:  # 如果不存在就创建一个免费价格策略
        models.PricePolicy.objects.create(
            category=1,
            title="个人免费版",
            price=0,
            project_num=3,  # 3个项目
            project_member=2,  # 2人
            project_space=20,  # 20M
            per_file_size=5,  # 5M
        )

if __name__ == '__main__':
    run()





